package com.eric.windows.perference;

import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.text.TextUtils;
import android.widget.Toast;

import com.eric.windows.R;


public class MyPreferenceLightFragment extends PreferenceFragment {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.display_prefs);
        if (null != getArguments()){
            String website = (String) getArguments().get("website");
            if (!TextUtils.isEmpty(website)){
                Toast.makeText(getActivity(), website, Toast.LENGTH_SHORT).show();
            }

        }
    }

}
